<?php include "includes/comunes.php"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include "includes/metas.php"; ?>
<link href="css/estilo.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="contenedor">
<?php include "includes/head.php"; ?>

<?php include "includes/menu.php"; ?>
    
    <div class="cont1">
    
    	<div class="conTop">
        	<div class="conTopTituloIN">
           
<!--            <div class="btnInsCont">
            <a href="autoridades.php"  class="btnIns1"></a>
            <a href="mision.php" class="btnIns2"></a>
            <a href="historia.php" class="btnIns3"></a>
            <a href="legislacion.php" class="btnIns4"></a>
            </div>-->
            </div>
            
        </div>
        <div class="cont2">
        
        <div class="pagInstcont">
        	 <?php
            $tabla="paginas";
            $condicion="pag_pub=1 and pag_id=".remplazar_car($_GET['pag_id']);
            $orden="";
            $res=cons_sql($tabla,$condicion,$orden);
            $reg=mysql_fetch_array($res)
            ?>
            <div class="pagInstTitulo2"><?php echo utf8_encode($reg['pag_tit']) ?></div>
           

            <div class="pagInstTitulo3">
              

                <?php echo utf8_encode($reg['pag_det'])?><br/><br/>

             
                <br/>
             
            </div>
            <?php if($reg['pag_gal']):?>
			<div class="pagInstTitulo2">Galeria Asociada</div>
			<div class="pagInstTitulo3">
			<?php 
			$tabla="galeriaximagenes";
            $condicion=" gal_gal_id=".$reg['pag_gal']." and gal_pub=1";
            $orden="order by gal_id desc";
            $resgal=cons_sql($tabla,$condicion,$orden);
			while($reggal=mysql_fetch_array($resgal)):?>
			<a href="../control/archivos/<?php echo utf8_encode($reggal['gal_img']) ?>" data-lightbox="galeria" alt="<?php echo utf8_encode($reggal['gal_des']) ?>" title="<?php echo utf8_encode($reggal['gal_des']) ?>"><img class="example-image" src="../control/archivos/<?php echo utf8_encode($reggal['gal_img']) ?>" alt="<?php echo utf8_encode($reggal['gal_des']) ?>" width="150" height="150" title="<?php echo utf8_encode($reggal['gal_des']) ?>"/></a>
			<?php endwhile?>
			 </div>
			<?php endif ?>
        
            
            

        </div>        
        
        <div id="clearing"></div>
        </div>
        <div class="contBot"></div> 
    
    
    <div id="clearing"></div>
    </div>
    
    
    
    
    
  <div class="bg"></div>
<div id="clearing"></div>
</div>
</body>
</html>
